//
//  LXJCommon.swift
//  XJWeiBo
//
//  Created by 李旭杰 on 2017/3/30.
//  Copyright © 2017年 李旭杰. All rights reserved.
//

import UIKit

/// 控件距离边缘的距离长度
let homeWeiboCellmargin = 10

///  获取当前屏幕的宽度
let ScreenWidth = UIScreen.main.bounds.size.width
///  获取当前屏幕的宽度
let ScreenHeight = UIScreen.main.bounds.size.height

///  全局函数创建随机颜色
func RandomColor() -> UIColor {
    
    let red = CGFloat(arc4random_uniform(256)) / 255.0
    let green = CGFloat(arc4random_uniform(256)) / 255.0
    let blue = CGFloat(arc4random_uniform(256)) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1.0)
}
